<?php
namespace Admin\Controller;


class IndexController extends BaseindexController {
    public function index(){
        
    	//垂直导航
    	$menu = M()->query("select id,class,icon_class from adminrule GROUP BY icon_class ORDER BY rank,id asc");
    	foreach ($menu as $k => $v) {
    		$menu[$k]['data'] = M()->query("select * from adminrule where icon_class = '$v[icon_class]' and is_show =1 ORDER BY rank,id asc");
    	}
    	$this->assign('menu',$menu);
    	// dolog('wen',$menu);
        
    	$this->display();
    }
    public function main(){
        // check_qx_admin(CONTROLLER_NAME,ACTION_NAME);
        // fund_fl(5335,10000,1.3);

        //print_r($menu);
        $this->display();
    }
}